/*    */ package com.feeyin.radar.sys.dao.impl;
/*    */ 
/*    */ import com.feeyin.radar.commons.Page;
/*    */ import com.feeyin.radar.sys.dao.BackupDataDAO;
/*    */ import com.feeyin.radar.sys.model.BackupData;
/*    */ import java.io.PrintStream;
/*    */ import java.util.List;
/*    */ import org.springframework.orm.ibatis.SqlMapClientTemplate;
/*    */ import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
/*    */ 
/*    */ public class BackupDataDAOImpl extends SqlMapClientDaoSupport
/*    */   implements BackupDataDAO
/*    */ {
/*    */   public List getPageBackupDatas(Page page)
/*    */   {
/* 20 */     if (page == null) return null;
/* 21 */     BackupData backupData = new BackupData();
/* 22 */     backupData.setPageStartRow(page.getPageStartRow());
/* 23 */     backupData.setPageEndRow(page.getPageEndRow());
/* 24 */     return getSqlMapClientTemplate().queryForList("getPageBackupDatas", backupData);
/*    */   }
/*    */ 
/*    */   public Integer getPageBackupDatasCount() {
/* 28 */     return (Integer)getSqlMapClientTemplate().queryForObject("getPageBackupDatasCount");
/*    */   }
/*    */ 
/*    */   public BackupData getBackupData(Integer id) {
/* 32 */     if (id == null) return null;
/* 33 */     return (BackupData)getSqlMapClientTemplate().queryForObject("getBackupData", id);
/*    */   }
/*    */ 
/*    */   public boolean insertBackupData(BackupData backupData) {
/* 37 */     if (backupData == null) return false;
/* 38 */     System.out.println("dao...........................");
/* 39 */     Integer result = (Integer)getSqlMapClientTemplate().insert("insertBackupData", backupData);
/* 40 */     return result != null;
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.dao.impl.BackupDataDAOImpl
 * JD-Core Version:    0.6.0
 */